package com.heima.search.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@FeignClient(value = "leadnews-article")
public interface ArticleFeign {
    @GetMapping("/api/v1/article/{id}")
    Map findArticle(@PathVariable("id") Long id);
}